<?python 
  
  from fasttrack.widgets import RiskWidget
  
?>

<table xmlns:py="http://purl.org/kid/ns#" class="pretty" id="risks" py:if="len(risks) > 0">
	<tr>
		<th width="40">Impact</th>
		<th width="40">Chance</th>
		<th width="240">Description</th>
		<th width="70">Creator</th>
		<th width="60">Date</th>
		<th width="10" py:if="not read_only">*</th>
	</tr>
	<span py:if="show_closed" py:for="risk in risks" py:replace="RiskWidget(risk=risk, read_only=read_only).display()" />
    <span py:if="not show_closed" py:for="risk in (r for r in risks if not r.closed)" py:replace="RiskWidget(risk=risk, read_only=read_only).display()" />
</table>